//
//  TXPDefine.h
//  TianXingPlanet
//
//  Created by Zeaple on 15-6-30.
//  Copyright (c) 2015年 Zyii. All rights reserved.
//

#ifndef XingQiuTianXing_TXPDefine_h
#define XingQiuTianXing_TXPDefine_h

#define DEF_GETSIZE(y) y.frame.size
#define SetImage(x) [UIImage imageNamed:x]
#define DEF_COLOR [UIColor colorWithRed:234./255 green:198./255 blue:1./255 alpha:1.]
#define DEF_COLOR2  [UIColor colorWithRed:40./255 green:40./255 blue:40./255 alpha:1.]
#define DEF_COLOR153  [UIColor colorWithRed:153./255 green:153./255 blue:153./255 alpha:1.]
#define DEF_COLOR242  [UIColor colorWithRed:242./255 green:242./255 blue:242./255 alpha:1.]
#define DEF_COLOR102 [UIColor colorWithRed:102./255 green:102./255 blue:102./255 alpha:1.]
#define DEF_COLOR51 [UIColor colorWithRed:51./255 green:51./255 blue:51./255 alpha:1.]
#define DEF_COLOR255  [UIColor colorWithRed:255./255 green:255./255 blue:255./255 alpha:1.]

 #define   KWINDOW      [UIApplication sharedApplication].keyWindow]

#define USERID     [AppDelegate appDealegate].uid
#define USERNAME        [AppDelegate appDealegate].userName
#define USERPHONE     [AppDelegate appDealegate].userPhone
#define USERSEX     [AppDelegate appDealegate].sex
#define USERSIGNATURE     [AppDelegate appDealegate].signature

#define LATITUDE   [AppDelegate appDealegate].latitude
#define LONGITUDE   [AppDelegate appDealegate].longitude
#define ISNOTNEEDMESSAGEBTN   [AppDelegate appDealegate].isNotNeedMessageBtn


#define BaseImageUrl @"https://oss-cn-beijing.aliyuncs.com/"

//疯狂购物城ip
#define FKGWIP @"192.168.0.115:8080"
#define FKGWAPI @"http://%@/SpringMVC_Spring_mybatis/%@"

//阿里域名  上线打开
//#define FKGWIP @"www.cfkjltd.cn"
//#define FKGWAPI @"https://%@/SpringMVC_Spring_mybatis/%@"

/********************接口分支节点*********/
//3.8获取验证码接口
#define   GETCODE    @"getCAPTCHA"
//2.1,引导页接口
#define   GUIDEPIC    @"guidePic"
//2.2,推荐商品接口
#define    RECOMMENDGOODS  @"recommendGoods"
//2.3,收藏商品接口
#define    COLLECTIONGOODS    @"collectionGoods"
//2.4,商品详情接口
#define    DETAILGOODS                @"detailGoods"
//2.5,获取商品评价接口
#define    EVALUATEGOODS         @"evaluateGoods"
//2.6,获取主页面商场列表
#define    HOMEPAGEBYMARKET         @"homepageBymarket"
//2.7,根据商场类别查询全部商场接口
#define    MARKETSHOWALLMARKET         @"marketsShowAllMarket"
//2.8,商场详情（商场店铺展示）接口
#define    DETAILMAERKET         @"detailMarket"
//2.9,首页根据产品名字进行产品模糊查询接口（进入商品展示列表页面）
#define    SELECTBYLOOSENAME         @"selectByloosename"
//2.10,店铺查询接口（店铺列表）
#define    SELECTBYSTORENAME         @"selectBystoreName"
//2.11,商场查询接口（商场列表)
#define    SELECTBYMARKETNAME         @"selectBymarketname"
//2.12,店铺界面接口
#define    STOREHOMEPAGE         @"storeHomePage"
//2.16,首页行业展示接口
#define    HOMEPAGEBYTRADE         @"homepageBytrade"
//2.17,查看更多行业接口
#define    GETMORETRADE         @"getmoretrade"
//2.18,点击行业查看商品类别列表接口
#define    GETPRODUCTTYPE         @"getproductType"
//2.19,根据产品类别查询所有商品接口
#define    SELECTALLPRODUCTBYTYPE         @"selectAllProductByType"
//2.20点击筛选展示接口
#define    SHOWPRODUCTBASICPROPERTY         @"showProductBasicProperty"
//2.21筛选界面执行筛选接口
#define    DOSREEN         @"doScreen"
//2.22 收藏店铺接口
#define    COLLECTIONSTORE         @"collectionStore"
//2.23店铺详情界面点击店铺头像查看店铺信息接口
#define    STOREMESSAGE         @"StoreMessage"
//2.24用户注册接口
#define    REGISTER         @"register"
//2.25登录接口
#define    LOGIN         @"login"
//2.26我的页面（经判断用户已经登录）
#define    MYHOMEPAGE         @"myHomePage"
//2.27查看购物车（已经登录可查看，未登录返回”请登录”）
#define    LOOKCART         @"lookCart"
//2.28用户添加商品到购物车
#define    ADDCART         @"addCart"
//2.29点击商品立即购买跳转确认订单界面后调用的接口
#define    GETADDRESSINFO         @"getAddressInfo"
//2.30确认订单界面提交订单接口
#define    CREATORDER         @"createOrder"
//2.31支付接口（调用微信、支付宝API）

//2.32查看我的收藏接口
#define    GETMYCOLLECTION         @"getMyCollection"
//2.33取消收藏接口
#define    DELETECOLLECTION         @"deleteCollection"
//2.34查看我的待付款订单接口
//#define    GETMYORDER         @"getMyOrder"
#define    GETMYUNPAY         @"getMyUnpay"
//2.35待付款订单删除
#define    DELETEORDER         @"deleteOrder"
//2.36查看待发货接口
//#define    GETUNSENDER         @"getUnsender"
//2.37查看待收货接口
//#define    GETUNRECEIVE         @"getUnReceive"
//2.38确认收货接口
#define    CONFIRMRECEIVE         @"confirmReceive"
//2.39退款接口
#define    REFUND         @"refund"
//2.39查看待评价接口
#define    GETUNEVATEORDER         @"getUnevateOrder"
//2.40删除待评价订单接口
#define    DLETEUNEVALUTEORDER         @"deleteUnevaluteOrder"
//2.41进行评价接口
#define    EVALUATE         @"evaluate"
//2.43已完成订单接口
#define    GETCOMPELETEORDERS         @"getCompeleteOrders"
//2.44取消退款接口
#define    DLETEREFUND         @"deleteRefund"


//2.46查看设置信息
#define    CONFIGMESSAGE         @"configMessage"
//2.47更改头像接口
#define    CHANGEPHOTO         @"changePhoto"


//2.49更改个性签名
#define    CHANGESIGNATURE        @"changeSignature"
//2.50更改密码接口
#define    CHANGEPASSWORD        @"changePassWord"
//2.51更改绑定手机号
#define    CHANGEPHONENUM        @"changePhoneNum"
//2.52查看收货地址
#define    SELECTRECADDRESS        @"selectRecAddress"
//2.53增加收货地址
#define    ADDRECTADDRESS        @"addRecAddress"
//2.54默认地址的选择
#define    SELECTDEFALTADR        @"selectDefaltAdr"
//2.55修改地址接口
#define    UPDATERECADR        @"updateRecAdr"
//2.56删除收货地址接口
#define    DELETERECADR        @"deleteRecAdr"
//2.57 我的关注接口  ----
#define    MYATTENTION        @"myAttention"
//2.58 取消关注接口
#define    DELMYATTENTION        @"delMyAttention"
//2.59 足迹接口
#define    MYFOOTPRINT        @"myFootprint"
//2.59足迹清空/删除接口
#define    MYFOOTPRINTCLEAR        @"myFootprintClear"
//2.60 附近接口
#define    MYNEARBY        @"myNearby"
//2.61 店铺内商品快速查看接口
#define    QUICKVIEW        @"quickView"
//2.62修改昵称
#define    CHANGNIKENAME        @"changeNikeName"
//2.63修改性别
#define    CHANGSEX        @"changeSex"
//2.64附近获取行业列表
#define    GETINDUSTRY        @"getIndustry"

//3.38用户端版本校验接口
#define    VERSION    @"version"

//3.6店铺注册--获取商场楼层接口
#define    MERCHANTSELECTEFLOOR    @"merchantSelectFloor"
//3.7店铺注册--获取商场楼层区域接口
#define    MERCHANTSELECTEAREA    @"merchantSelectArea"

//首页轮播图
#define  HOMELUNBOTU       @"slideshow"
//购物车删除商品接口
#define         DELCART       @"delCart"
//2.70获取热搜词汇
#define    GETHOTSEARCH   @"getHotSearch"
//2.69改变用户产品体验状态
#define    CHANGUSERPROSTATUS   @"changeUserProStatus"

//2.66获取店铺在线员工列表
#define    GETONLINEASSISTANTS   @"getOnlineAssistants"
//今日活动店铺
#define    EVENTSTORE                         @"eventStore"
//2.68获取聊天对象信息接口
#define    GETCHATOBJECTSINFORMATION  @"getChatObjectsInformation"

//2.70直播店铺列表
#define    GETLIVESTORE  @"getLiveStore"
//2.71直播界面行业列表
#define    INDUSTRYLIST    @"industryList"
//2.73 观看直播获取店内直播列表
#define    LOOKLIVE    @"lookLive"
//友盟消息推送API
#define     UMPUSHHTTPS  @"https://msgapi.umeng.com/api/send?sign=mysign"

#endif
